Universes for Generic Programs and Proofs in Dependent Type Theory
نویسندگان
چکیده
We show how to write generic programs and proofs in MartinLöf type theory. To this end we consider several extensions of MartinLöf’s logical framework for dependent types. Each extension has a universes of codes (signatures) for inductively defined sets with generic formation, introduction, elimination, and equality rules. These extensions are modeled on Dybjer and Setzer’s finitely axiomatized theories of inductive-recursive definitions, which also have a universe of codes for sets, and generic formation, introduction, elimination, and equality rules. However, here we consider several smaller universes of interest for generic programming and universal algebra. We thus formalize one-sorted and many-sorted term algebras, as well as iterated, parameterized, generalized, and indexed inductive definitions. We also show how to extend the techniques of generic programming to these universes. Most of the definitions in the paper have been implemented using the proof assistant Alfa for dependent type theory.
منابع مشابه
Game Semantics for Martin-Löf Type Theory
We present a new game semantics for Martin-Löf type theory (MLTT); our aim is to give a mathematical and intensional explanation of MLTT. Specifically, we propose a category with families (a categorical model of MLTT) of a novel variant of games, which induces an injective (when Id-types are excluded) and surjective interpretation of the intensional variant of MLTT equipped with unit-, empty-, ...
متن کاملDenotational semantics for guarded dependent type theory
We present a new model of Guarded Dependent Type Theory (GDTT), a type theory with guarded recursion and multiple clocks in which one can program with, and reason about coinductive types. Productivity of recursively defined coinductive programs and proofs is encoded in types using guarded recursion, and can therefore be checked modularly, unlike the syntactic checks implemented in modern proof ...
متن کاملVeckoblad Från Matematiska Institutionen I Uppsala Universes for Inductive and Inductive-recursive Definitions in Martin-löf Type Theory Universes for Generic Programs and Proofs in Dependent Type Theory (with Marcin Benke and Patrik Jansson), Accepted for Publication in Nordic Journal of Computing
Martin-Löf type theory is a formal and conceptual framework for constructive mathematics where induction and recursion are two principal notions. In this lecture we review recent joint work with Anton Setzer, Swansea, on new formalizations of inductive and recursive definitions in Martin-Löf type theory. The key idea is to introduce a universe of codes for inductively defined sets with generic ...
متن کاملConstructing Universes for Generic Programming
Programming languages with an expressive language for defining data types often suffer from an excess in boiler-plate code and lack of re-usable, extendible libraries. Dependently typed programming languages are especially prone to such problems. With dependent types one can specify any number of relationships between data and types, to better specify the correct behaviour of programs. Thus one...
متن کاملFoundations and Applications of Higher-Dimensional Directed Type Theory
Intuitionistic type theory [43] is an expressive formalism that unifies mathematics and computation. A central concept is the propositions-as-types principle, according to which propositions are interpreted as types, and proofs of a proposition are interpreted as programs of the associated type. Mathematical propositions are thereby to be understood as specifications, or problem descriptions, t...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- Nord. J. Comput.
دوره 10 شماره
صفحات -
تاریخ انتشار 2003